package com.dmgis.hndz.pojo;

/** 
* @Description: 行政区划，查询条件
* @author zhuc
* @date 2017年6月2日15:33:55 
*/
public class City {
	/**
	 * @param city
	 * @param county
	 * @param home
	 * @param zhdType
	 * @param cxtypes
	 */
	public City(String city, String county, String home, String zhdType,
			String cxtypes) {
		super();
		this.city = city;
		this.county = county;
		this.home = home;
		this.zhdType = zhdType;
		this.cxtypes = cxtypes;
	}
	/**
	 * 
	 */
	public City() {
		super();
	}

	private String city ;//市
	private String county ;//县
	private String home ;//乡
	private String zhdType ;//灾害点类型
	private String cxtypes ;//查询类型
	private String latlon ;//坐标点范围
	private String keyPoint ;//重点关注点
	private String noKeyPoint ;//非重点关注所有点
	private String years ;//年份
	//灾害点过多时，实现分批查询
	private int inum ;//设置当前页数，全局变量
	private int anum ;//设置一页数目
	private String wybh;//维护编号
	private String gmdj;//规模等级
	private String xqdj;//险情等级
	private String zqdj;//灾情等级
	private String divcode;
	private String sxlx;//筛选类型  wxrc//威胁人口 wxcc//威胁财产 swrk//死亡人口 zjsh//直接损失
	private String pdlx;//判断类型 1大于等于，2大于，3等于，4小于等于，5小于
	private int sxz;//筛选值
	private String yhddj;//隐患点等级 1省级，2市级，3县级
	private String hxdlx;//核销点类型 1搬迁避让，2工程治理，3隐患体已趋于稳定，4隐患体不具备地质灾害形成条件，5其它
	private String searchParams;//模糊查询参数

	public String getSxlx() {
		return sxlx;
	}

	public void setSxlx(String sxlx) {
		this.sxlx = sxlx;
	}

	public String getPdlx() {
		return pdlx;
	}

	public void setPdlx(String pdlx) {
		this.pdlx = pdlx;
	}

	public int getSxz() {
		return sxz;
	}

	public void setSxz(int sxz) {
		this.sxz = sxz;
	}

	public String getYhddj() {
		return yhddj;
	}

	public void setYhddj(String yhddj) {
		this.yhddj = yhddj;
	}

	public String getHxdlx() {
		return hxdlx;
	}

	public void setHxdlx(String hxdlx) {
		this.hxdlx = hxdlx;
	}

	public String getSearchParams() {
		return searchParams;
	}

	public void setSearchParams(String searchParams) {
		this.searchParams = searchParams;
	}

	public String getDivcode() {
		return divcode;
	}
	public void setDivcode(String divcode) {
		this.divcode = divcode;
	}


	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public String getHome() {
		return home;
	}
	public void setHome(String home) {
		this.home = home;
	}
	public String getZhdType() {
		return zhdType;
	}
	public void setZhdType(String zhdType) {
		this.zhdType = zhdType;
	}
	public String getCxtypes() {
		return cxtypes;
	}
	public void setCxtypes(String cxtypes) {
		this.cxtypes = cxtypes;
	}
	public String getLatlon() {
		return latlon;
	}
	public void setLatlon(String latlon) {
		this.latlon = latlon;
	}
	public int getInum() {
		return inum;
	}
	public void setInum(int inum) {
		this.inum = inum;
	}
	public int getAnum() {
		return anum;
	}
	public void setAnum(int anum) {
		this.anum = anum;
	}
	public String getKeyPoint() {
		return keyPoint;
	}
	public void setKeyPoint(String keyPoint) {
		this.keyPoint = keyPoint;
	}
	
	public String getNoKeyPoint() {
		return noKeyPoint;
	}
	public void setNoKeyPoint(String noKeyPoint) {
		this.noKeyPoint = noKeyPoint;
	}
	
	public String getYears() {
		return years;
	}
	public void setYears(String years) {
		this.years = years;
	}

	public String getWybh() {
		return wybh;
	}
	public void setWybh(String wybh) {
		this.wybh = wybh;
	}

	public String getGmdj() {
		return gmdj;
	}

	public void setGmdj(String gmdj) {
		this.gmdj = gmdj;
	}

	public String getXqdj() {
		return xqdj;
	}

	public void setXqdj(String xqdj) {
		this.xqdj = xqdj;
	}

	public String getZqdj() {
		return zqdj;
	}

	public void setZqdj(String zqdj) {
		this.zqdj = zqdj;
	}

	@Override
	public String toString() {
		String msgStr = "";
		if (city != null && !"".equals(city.trim())) {
			msgStr += "市为" + city + ", ";
		}
		
		while (msgStr.endsWith(", ")) {
			msgStr = msgStr.substring(0, msgStr.length() - 1);			
		}
		return msgStr;
	}
}
